package action.article;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import domain.ArticleType;

import service.ArticleManager;
import service.impl.ArticleManagerImpl;

public class AllArticleTypeAction {
	private List<ArticleType> articleTypeList;

	public AllArticleTypeAction() {
		articleTypeList=new ArrayList();
		ArticleManager am = new ArticleManagerImpl();
		this.articleTypeList=am.getAllArticleType();
//		List atl = am.getAllArticleType();
//		Iterator<ArticleType> it = atl.iterator();
//		while (it.hasNext())
//			this.articleTypeList.add(it.next().getName());	
	
	}

	public List<ArticleType> getArticleTypeList() {
		return articleTypeList;
	}
}
